package com.rxt.thermopro.adapter

import android.util.SparseArray
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

class TempGraphPageAdapter(
    private val fm: FragmentManager,
    private val fragmentList: SparseArray<Fragment>
) :
    FragmentPagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {


    override fun getCount(): Int {
        return fragmentList.size()
    }

    override fun getItem(position: Int): Fragment {
        return fragmentList[position]
    }


}